import axios from '@/libs/request/axios'
// 获取参数信息 add_by_gjq
export const getTemplateList = (params) => {
    return axios.request({
        url: `/case/messageTemplate/queryTemplateList`,
        data: params,
        method: 'post'
    })
}
// 添加参数配置 add_by_gjq
export const addTemplate = (params) => {
    return axios.request({
        url: '/case/messageTemplate/addTemplate',
        data:params,
        method: 'post'
    })
}
// 编辑参数配置 add_by_gjq
export const editTemplate = (params) => {
    return axios.request({
        url: '/case/messageTemplate/editTemplate',
        data:params,
        method: 'post'
    })
}
// 删除参数配置 add_by_gjq
export const deleteTemplate = (id, params) => {
    return axios.request({
        url: `/case/messageTemplate/deleteTemplate/${id}`,
        data:params,
        method: 'delete'
    })
}
// 短信发送 add_by_gjq
export const sendMessageInfo = (params) => {
    return axios.request({
        url: '/case/messageTemplate/sendMessageInfo',
        data:params,
        method: 'post'
    })
}

// 根据短信模板类型查询短信模板
export const getMsgTempByType = (params) => {
    return axios.request({
        url: '/case/messageTemplate/msgTemp',
        params: params,
        method: 'get'
    })
}

// 发送编辑后的短信内容
export const sendMsg = (params) => {
    return axios.request({
        url: '/case/messageTemplate/sendMsg',
        data:params,
        method: 'post'
    })
}
